package com.hyj.entity;

import java.util.List;

import org.springframework.stereotype.Component;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Data
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Component
public class ParentModules {
	
	@ApiModelProperty(value = "权限模板ID")
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	
	@ApiModelProperty(value = "权限模板名")
	@TableId(value = "text")
	private String text;
	
	@ApiModelProperty(value = "父节点权限模板ID")
	@TableId(value = "parentId")
	private Integer parentId;
	
	private List<Modules> children;

}
